package com.cochain.dynamicdatasource.service;

import com.cochain.dynamicdatasource.entity.po.Documents;
import com.cochain.dynamicdatasource.mapper.DocumentsMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class DocumentsService {
    @Resource
    private DocumentsMapper documentsMapper;

    public void update(){
        Documents documents = new Documents();
        documentsMapper.updateById(documents);
    }

    public List<Documents> get(){
        return documentsMapper.get();
    }
}
